package com.baox.agridata.synchronous.service.impl;

import com.baox.agridata.synchronous.dao.TXDRCarMapper;
import com.baox.agridata.synchronous.entity.TXDRCarEntity;
import com.baox.agridata.synchronous.service.TXDRCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TXDRCarServiceImpl implements TXDRCarService {

    @Autowired
    private TXDRCarMapper txdrCarMapper;


    @Override
    public TXDRCarEntity selectTXDRCarById(String mid) {
        return txdrCarMapper.selectTXDRCarById(mid);
    }

    @Override
    public Integer insertIntoTXDRCar(TXDRCarEntity txdrCarEntity) {
        return txdrCarMapper.insertIntoTXDRCar(txdrCarEntity);
    }

    @Override
    public Integer updateTXDRCarById(TXDRCarEntity txdrCarEntity) {
        return txdrCarMapper.updateTXDRCarById(txdrCarEntity);
    }

    @Override
    public List<TXDRCarEntity> selectTXDRCarDataToChengDu(String startTime) {
        return txdrCarMapper.selectTXDRCarDataToChengDu(startTime);
    }
}
